Skip to main content

IdentityAuthContext<TUser, TRole>

Assembly: ServiceStack.Extensions.dll
View Source
Declaration
public class IdentityAuthContext<TUser, TRole> : object, IIdentityAuthContext where TUser : IdentityUser where TRole : IdentityRole

Properties

SessionFactory

View Source
Declaration
public Func<IAuthSession> SessionFactory { get; set; }

AuthApplication

View Source
Declaration
public IdentityApplicationAuthProvider AuthApplication { get; set; }

AuthCredentials

View Source
Declaration
public IdentityCredentialsAuthProvider<TUser> AuthCredentials { get; set; }

AuthJwt

View Source
Declaration
public IdentityJwtAuthProvider<TUser, TRole> AuthJwt { get; set; }

LoginPath

View Source
Declaration
public string? LoginPath { get; set; }

LogoutPath

View Source
Declaration
public string? LogoutPath { get; set; }

AccessDeniedPath

View Source
Declaration
public string? AccessDeniedPath { get; set; }

ReturnUrlParameter

View Source
Declaration
public string? ReturnUrlParameter { get; set; }

IncludeRegisterService

Register ServiceStack Identity Register Service

View Source
Declaration
public bool IncludeRegisterService { get; set; }

IncludeAssignRoleServices

Register ServiceStack Identity Un/Assign Roles Services

View Source
Declaration
public bool IncludeAssignRoleServices { get; set; }

AssignRolesToAdminUsers

View Source
Declaration
public List<string> AssignRolesToAdminUsers { get; set; }

UserToSessionConverter

View Source
Declaration
public Func<TUser, IAuthSession> UserToSessionConverter { get; set; }

SessionToUserConverter

View Source
Declaration
public Func<IAuthSession, TUser> SessionToUserConverter { get; set; }

Methods

DisableApplicationCookie()

View Source
Declaration
public void DisableApplicationCookie()

DisableCredentialsAuth()

View Source
Declaration
public void DisableCredentialsAuth()

DisableJwt()

View Source
Declaration
public void DisableJwt()

DefaultSessionToUserConverter(IAuthSession)

View Source
Declaration
public static TUser DefaultSessionToUserConverter(IAuthSession session)
Returns

<TUser>

Parameters
TypeName
ServiceStack.Auth.IAuthSessionsession

DefaultUserToSessionConverter(TUser)

View Source
Declaration
public static IAuthSession DefaultUserToSessionConverter(TUser user)
Returns

ServiceStack.Auth.IAuthSession

Parameters
TypeName
<TUser>user

Implements